package com.steakliu.sun.loadbalancer.api;

import com.steakliu.sun.common.meta.ServiceMeta;
import com.steakliu.sun.constant.LoadBalanceConstant;
import com.steakliu.sun.spi.annotation.SPI;

import java.util.List;

/**
 * 功能说明：
 * <p>
 * Original @Author: steakliu-刘牌, 2023-01-07  22:32
 * <p>
 * Copyright (C)2020-2022  steakliu All rights reserved.
 */
@SPI(LoadBalanceConstant.RANDOM)
public interface LoadBalancer {
    ServiceMeta select(List<ServiceMeta> services);
}
